package com.example.mybatisdemoplus.Service;

import com.example.mybatisdemoplus.Entity.Result;
import com.example.mybatisdemoplus.Mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService{
    @Resource
    private UserMapper userMapper;

    @Override
    public Result getAll() {
        return Result.success(userMapper.selectList(null));
    }
}
